package com.flxz.user.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 收藏VO
 * 
 * @author flxz
 * @date 2025-09-14
 */
public class FavoriteVO
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 主题ID */
    private Long topicId;

    /** 操作类型（add添加 remove移除） */
    private String action;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getTopicId() {
        return topicId;
    }

    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
